* {
    padding: 0;
    margin: 0;
}

body {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(45deg, #303F9F, #512DA8, #7B1FA2);
}

/* form 标签外层 div 样式 */
.login-box {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(45deg, #D32F2F, #C2185B, #7B1FA2);
    transition: left 1s;
}

/* form 表单样式 */
.login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    width: 400px;

}

/* 标题 */
.login-form h1 {
    font-weight: 400;
    color: #fff;
}


/* 账号 密码框样式 */
.login-form .txtb,
.login-form .login-btn {
    border: none;
    outline: none;
    border-radius: 5px;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    margin: 5px 0;
    background-color: rgba(0, 0, 0, .3);
    color: #fff;
}

/* 登录按钮样式 */
.login-form .login-btn {
    cursor: pointer;
    width: 440px;
    background-color: rgba(0, 0, 0, .3);
    color: #fff;
}

.hide-login-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 40px;
    cursor: pointer;
}

/* show-login-btn */
.show-login-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50px;
    width: 200px;
    padding: 0 50px 0 70px;
    background-color: rgba(0, 0, 0, .3);
    cursor: pointer;
    border-radius: 10px;
}

.show-login-btn .icon {
    color: #fff;
    padding: 10px;
    height: 30px;
    width: 30px;
}

.show-login-btn p {
    color: #fff;
    line-height: 50px;
    float: left;
}

.showed {
    left: 0;
}